export class Resultes {
  static pageList({ list, total = 0, pageNum = 1, pageSize = 10 }) {
    return {
      list,
      total,
      pageNum,
      pageSize,
    };
  }
  static success(data: any, msg = "操作成功") {
    return {
      code: 200,
      success: true,
      msg: msg,
      data: data,
    };
  }
  static fail(msg = "操作失败", code: any = -1) {
    return {
      code: code,
      success: false,
      msg: msg,
    };
  }
}
